/*
 * @Author: silence
 * @Date: 2023-12-14 09:34:03
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-04-15 13:48:19
 * @Description: 版本更新
 */
import 'package:sil_utils_package/log/SilEntityLog.dart';

class UpdateEntity {
  String? id;
  String? name;
  String? packageName;
  String? versionCode;
  String? versionName;
  String? forceUpdate;
  String? systemType;
  String? createTime;
  String? isValid;

  UpdateEntity({
    this.id,
    this.name,
    this.packageName,
    this.versionCode,
    this.versionName,
    this.forceUpdate,
    this.systemType,
    this.createTime,
    this.isValid,
  });

  UpdateEntity.fromJson(Map<String, dynamic> json) {
    id = SilEntityLog.handleString(json, 'id');
    name = SilEntityLog.handleString(json, 'name');
    packageName = SilEntityLog.handleString(json, 'packageName');
    versionCode = SilEntityLog.handleString(json, 'versionCode');
    versionName = SilEntityLog.handleString(json, 'versionName');
    forceUpdate = SilEntityLog.handleString(json, 'forceUpdate');
    systemType = SilEntityLog.handleString(json, 'systemType');
    createTime = SilEntityLog.handleString(json, 'createTime');
    isValid = SilEntityLog.handleString(json, 'isValid');
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['packageName'] = this.packageName;
    data['versionCode'] = this.versionCode;
    data['versionName'] = this.versionName;
    data['forceUpdate'] = this.forceUpdate;
    data['systemType'] = this.systemType;
    data['createTime'] = this.createTime;
    data['isValid'] = this.isValid;
    return data;
  }
}
